All files / web/src/app/practice/[studentId]/skills page.tsx

0% Statements 0/18
0% Branches 0/1
0% Functions 0/1
0% Lines 0/18

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19                                     
import { redirect } from 'next/navigation'

interface SkillsPageProps {
  params: Promise<{ studentId: string }>
}

/**
 * Skills Page - Redirects to Dashboard Skills Tab
 *
 * The skills view has been consolidated into the main dashboard
 * as a tab. This redirect ensures old URLs continue to work.
 *
 * URL: /practice/[studentId]/skills -> /practice/[studentId]/dashboard?tab=skills
 */
export default async function SkillsPage({ params }: SkillsPageProps) {
  const { studentId } = await params
  redirect(`/practice/${studentId}/dashboard?tab=skills`)
}